<?php

namespace App\Http\Services;

use App\Http\Model\GameLesson;

class GameLessonServices extends CommonServices {
    
    private $modelGameLesson;
    public function __construct(GameLesson $gameLesson)
    {
        $this->modelGameLesson = $gameLesson;
    }
    public function store(array $data = []): int {
        return (int) $this->modelGameLesson->insertSingle($data);
    }

    public function update(int $lessonId = 0, array $data = []):int {
        return (int) $this->modelGameLesson->singleUpdate(['lesson_id' => $lessonId], $data);
    }
}